﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Sample.EventToCommand;
using Sample.ItemsControl;
using Sample.LINQ;

namespace Sample
{
  /// <summary>
  /// Interaction logic for MainWindow.xaml
  /// </summary>
  public partial class MainWindow : Window
  {
    public MainWindow()
    {
      InitializeComponent();
    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {
      switch (((Button)sender).Content.ToString())
      {
        case "Animation":
          WinAnimation animWin = new WinAnimation();
          animWin.ShowDialog();
          break;
        case "Border":
          WinBorder borderWin = new WinBorder();
          borderWin.ShowDialog();
          break;
        case "Style":
          WinStyle styleWin = new WinStyle();
          styleWin.ShowDialog();
          break;
        case "Layout":
          WinLayout layoutWin = new WinLayout();
          layoutWin.ShowDialog();
          break;
        case "Brushes":
          WinBrushes burshesWin = new WinBrushes();
          burshesWin.ShowDialog();
          break;
        case "Binding":
          WinBinding bindingWin = new WinBinding();
          bindingWin.ShowDialog();
          break;
        case "Event To Command":
          EventToCommandView eventToCommandWin = new EventToCommandView();
          eventToCommandWin.ShowDialog();
          break;
        case "Carousel":
          WinCarousel carouselWin = new WinCarousel();
          carouselWin.ShowDialog();
          break;
        case "Datagrid":
          WinDatagrid datagridWin = new WinDatagrid();
          datagridWin.ShowDialog();
          break;
        case "Drawing":
          WinDraw drawWin = new WinDraw();
          drawWin.ShowDialog();
          break;
        case "Telerik":
          WinRadControl radControlWin = new WinRadControl();
          radControlWin.ShowDialog();
          break;
        case "Telerik RadGridView":
          GridTelerik gridTelerik = new GridTelerik();
          gridTelerik.ShowDialog();
          break;
        case "Entity Framework":
          WinEntityFx entityFxWin = new WinEntityFx();
          entityFxWin.ShowDialog();
          break;
        case "Items Control":
          WinItemsControl itemsControl = new WinItemsControl();
          itemsControl.ShowDialog();
          break;
        case "Test":
          WinTest testWin = new WinTest();
          testWin.ShowDialog();
          break;
      }
    }
  }
}
